package org.itboys.dto.base;

import java.io.Serializable;
import java.util.List;

/**
 * 分页接口返回的对象
 * @author ChenJh
 *
 * @param <T>
 */
public class PageResult<T>  implements Serializable{
	
	private static final long serialVersionUID = -182310800785569219L;
	
	private boolean success; //成功或失败
	private int code; //失败的编码
	private String message; //失败编码翻译
	private List<T> result; //返回的对象
	private long total;
	
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public List<T> getResult() {
		return result;
	}
	public void setResult(List<T> result) {
		this.result = result;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
}
